Optimal. Leaf size=407 \[ -\frac {15 \sqrt {\frac {\pi }{2}} d^{5/2} \cos \left (4 a-\frac {4 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{4096 b^{7/2}}-\frac {15 \sqrt {\pi } d^{5/2} \cos \left (2 a-\frac {2 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{256 b^{7/2}}+\frac {15 \sqrt {\frac {\pi }{2}} d^{5/2} \sin \left (4 a-\frac {4 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{4096 b^{7/2}}+\frac {15 \sqrt {\pi } d^{5/2} \sin \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{256 b^{7/2}}+\frac {15 d^2 \sqrt {c+d x} \cos (2 a+2 b x)}{128 b^3}+\frac {15 d^2 \sqrt {c+d x} \cos (4 a+4 b x)}{2048 b^3}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.67, antiderivative size = 407, normalized size of antiderivative = 1.00, number of steps used = 18, number of rules used = 7, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.292, Rules used = {4406, 3296, 3306, 3305, 3351, 3304, 3352} \[ -\frac {15 \sqrt {\frac {\pi }{2}} d^{5/2} \cos \left (4 a-\frac {4 b c}{d}\right ) \text {FresnelC}\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {b} \sqrt {c+d x}}{\sqrt {d}}\right )}{4096 b^{7/2}}-\frac {15 \sqrt {\pi } d^{5/2} \cos \left (2 a-\frac {2 b c}{d}\right ) \text {FresnelC}\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {\pi } \sqrt {d}}\right )}{256 b^{7/2}}+\frac {15 \sqrt {\frac {\pi }{2}} d^{5/2} \sin \left (4 a-\frac {4 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{4096 b^{7/2}}+\frac {15 \sqrt {\pi } d^{5/2} \sin \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{256 b^{7/2}}+\frac {15 d^2 \sqrt {c+d x} \cos (2 a+2 b x)}{128 b^3}+\frac {15 d^2 \sqrt {c+d x} \cos (4 a+4 b x)}{2048 b^3}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3296
Rule 3304
Rule 3305
Rule 3306
Rule 3351
Rule 3352
Rule 4406
Rubi steps
\begin {align*} \int (c+d x)^{5/2} \cos ^3(a+b x) \sin (a+b x) \, dx &=\int \left (\frac {1}{4} (c+d x)^{5/2} \sin (2 a+2 b x)+\frac {1}{8} (c+d x)^{5/2} \sin (4 a+4 b x)\right ) \, dx\\ &=\frac {1}{8} \int (c+d x)^{5/2} \sin (4 a+4 b x) \, dx+\frac {1}{4} \int (c+d x)^{5/2} \sin (2 a+2 b x) \, dx\\ &=-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b}+\frac {(5 d) \int (c+d x)^{3/2} \cos (4 a+4 b x) \, dx}{64 b}+\frac {(5 d) \int (c+d x)^{3/2} \cos (2 a+2 b x) \, dx}{16 b}\\ &=-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}-\frac {\left (15 d^2\right ) \int \sqrt {c+d x} \sin (4 a+4 b x) \, dx}{512 b^2}-\frac {\left (15 d^2\right ) \int \sqrt {c+d x} \sin (2 a+2 b x) \, dx}{64 b^2}\\ &=\frac {15 d^2 \sqrt {c+d x} \cos (2 a+2 b x)}{128 b^3}-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}+\frac {15 d^2 \sqrt {c+d x} \cos (4 a+4 b x)}{2048 b^3}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}-\frac {\left (15 d^3\right ) \int \frac {\cos (4 a+4 b x)}{\sqrt {c+d x}} \, dx}{4096 b^3}-\frac {\left (15 d^3\right ) \int \frac {\cos (2 a+2 b x)}{\sqrt {c+d x}} \, dx}{256 b^3}\\ &=\frac {15 d^2 \sqrt {c+d x} \cos (2 a+2 b x)}{128 b^3}-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}+\frac {15 d^2 \sqrt {c+d x} \cos (4 a+4 b x)}{2048 b^3}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}-\frac {\left (15 d^3 \cos \left (4 a-\frac {4 b c}{d}\right )\right ) \int \frac {\cos \left (\frac {4 b c}{d}+4 b x\right )}{\sqrt {c+d x}} \, dx}{4096 b^3}-\frac {\left (15 d^3 \cos \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\cos \left (\frac {2 b c}{d}+2 b x\right )}{\sqrt {c+d x}} \, dx}{256 b^3}+\frac {\left (15 d^3 \sin \left (4 a-\frac {4 b c}{d}\right )\right ) \int \frac {\sin \left (\frac {4 b c}{d}+4 b x\right )}{\sqrt {c+d x}} \, dx}{4096 b^3}+\frac {\left (15 d^3 \sin \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\sin \left (\frac {2 b c}{d}+2 b x\right )}{\sqrt {c+d x}} \, dx}{256 b^3}\\ &=\frac {15 d^2 \sqrt {c+d x} \cos (2 a+2 b x)}{128 b^3}-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}+\frac {15 d^2 \sqrt {c+d x} \cos (4 a+4 b x)}{2048 b^3}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}-\frac {\left (15 d^2 \cos \left (4 a-\frac {4 b c}{d}\right )\right ) \operatorname {Subst}\left (\int \cos \left (\frac {4 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{2048 b^3}-\frac {\left (15 d^2 \cos \left (2 a-\frac {2 b c}{d}\right )\right ) \operatorname {Subst}\left (\int \cos \left (\frac {2 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{128 b^3}+\frac {\left (15 d^2 \sin \left (4 a-\frac {4 b c}{d}\right )\right ) \operatorname {Subst}\left (\int \sin \left (\frac {4 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{2048 b^3}+\frac {\left (15 d^2 \sin \left (2 a-\frac {2 b c}{d}\right )\right ) \operatorname {Subst}\left (\int \sin \left (\frac {2 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{128 b^3}\\ &=\frac {15 d^2 \sqrt {c+d x} \cos (2 a+2 b x)}{128 b^3}-\frac {(c+d x)^{5/2} \cos (2 a+2 b x)}{8 b}+\frac {15 d^2 \sqrt {c+d x} \cos (4 a+4 b x)}{2048 b^3}-\frac {(c+d x)^{5/2} \cos (4 a+4 b x)}{32 b}-\frac {15 d^{5/2} \sqrt {\frac {\pi }{2}} \cos \left (4 a-\frac {4 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{4096 b^{7/2}}-\frac {15 d^{5/2} \sqrt {\pi } \cos \left (2 a-\frac {2 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{256 b^{7/2}}+\frac {15 d^{5/2} \sqrt {\frac {\pi }{2}} S\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (4 a-\frac {4 b c}{d}\right )}{4096 b^{7/2}}+\frac {15 d^{5/2} \sqrt {\pi } S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right ) \sin \left (2 a-\frac {2 b c}{d}\right )}{256 b^{7/2}}+\frac {5 d (c+d x)^{3/2} \sin (2 a+2 b x)}{32 b^2}+\frac {5 d (c+d x)^{3/2} \sin (4 a+4 b x)}{256 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 8.39, size = 550, normalized size = 1.35 \[ \frac {-1024 b^3 c^2 \sqrt {c+d x} \cos (2 (a+b x))-256 b^3 c^2 \sqrt {c+d x} \cos (4 (a+b x))-1024 b^3 d^2 x^2 \sqrt {c+d x} \cos (2 (a+b x))-256 b^3 d^2 x^2 \sqrt {c+d x} \cos (4 (a+b x))-2048 b^3 c d x \sqrt {c+d x} \cos (2 (a+b x))-512 b^3 c d x \sqrt {c+d x} \cos (4 (a+b x))+1280 b^2 d^2 x \sqrt {c+d x} \sin (2 (a+b x))+160 b^2 d^2 x \sqrt {c+d x} \sin (4 (a+b x))+1280 b^2 c d \sqrt {c+d x} \sin (2 (a+b x))+160 b^2 c d \sqrt {c+d x} \sin (4 (a+b x))-15 \sqrt {2 \pi } d^3 \sqrt {\frac {b}{d}} \cos \left (4 a-\frac {4 b c}{d}\right ) C\left (2 \sqrt {\frac {b}{d}} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}\right )-480 \sqrt {\pi } d^3 \sqrt {\frac {b}{d}} \cos \left (2 a-\frac {2 b c}{d}\right ) C\left (\frac {2 \sqrt {\frac {b}{d}} \sqrt {c+d x}}{\sqrt {\pi }}\right )+15 \sqrt {2 \pi } d^3 \sqrt {\frac {b}{d}} \sin \left (4 a-\frac {4 b c}{d}\right ) S\left (2 \sqrt {\frac {b}{d}} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}\right )+480 \sqrt {\pi } d^3 \sqrt {\frac {b}{d}} \sin \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {\frac {b}{d}} \sqrt {c+d x}}{\sqrt {\pi }}\right )+960 b d^2 \sqrt {c+d x} \cos (2 (a+b x))+60 b d^2 \sqrt {c+d x} \cos (4 (a+b x))}{8192 b^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 376, normalized size = 0.92 \[ -\frac {15 \, \sqrt {2} \pi d^{3} \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {C}\left (2 \, \sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) - 15 \, \sqrt {2} \pi d^{3} \sqrt {\frac {b}{\pi d}} \operatorname {S}\left (2 \, \sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) + 480 \, \pi d^{3} \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {C}\left (2 \, \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) - 480 \, \pi d^{3} \sqrt {\frac {b}{\pi d}} \operatorname {S}\left (2 \, \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - 4 \, {\left (192 \, b^{3} d^{2} x^{2} + 384 \, b^{3} c d x + 192 \, b^{3} c^{2} + 360 \, b d^{2} \cos \left (b x + a\right )^{2} - 8 \, {\left (64 \, b^{3} d^{2} x^{2} + 128 \, b^{3} c d x + 64 \, b^{3} c^{2} - 15 \, b d^{2}\right )} \cos \left (b x + a\right )^{4} - 225 \, b d^{2} + 160 \, {\left (2 \, {\left (b^{2} d^{2} x + b^{2} c d\right )} \cos \left (b x + a\right )^{3} + 3 \, {\left (b^{2} d^{2} x + b^{2} c d\right )} \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )\right )} \sqrt {d x + c}}{8192 \, b^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 3.10, size = 2418, normalized size = 5.94 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 470, normalized size = 1.15 \[ \frac {-\frac {d \left (d x +c \right )^{\frac {5}{2}} \cos \left (\frac {2 \left (d x +c \right ) b}{d}+\frac {2 d a -2 c b}{d}\right )}{8 b}+\frac {5 d \left (\frac {d \left (d x +c \right )^{\frac {3}{2}} \sin \left (\frac {2 \left (d x +c \right ) b}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}-\frac {3 d \left (-\frac {d \sqrt {d x +c}\, \cos \left (\frac {2 \left (d x +c \right ) b}{d}+\frac {2 d a -2 c b}{d}\right )}{4 b}+\frac {d \sqrt {\pi }\, \left (\cos \left (\frac {2 d a -2 c b}{d}\right ) \FresnelC \left (\frac {2 \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {2 d a -2 c b}{d}\right ) \mathrm {S}\left (\frac {2 \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{8 b \sqrt {\frac {b}{d}}}\right )}{4 b}\right )}{8 b}-\frac {d \left (d x +c \right )^{\frac {5}{2}} \cos \left (\frac {4 \left (d x +c \right ) b}{d}+\frac {4 d a -4 c b}{d}\right )}{32 b}+\frac {5 d \left (\frac {d \left (d x +c \right )^{\frac {3}{2}} \sin \left (\frac {4 \left (d x +c \right ) b}{d}+\frac {4 d a -4 c b}{d}\right )}{8 b}-\frac {3 d \left (-\frac {d \sqrt {d x +c}\, \cos \left (\frac {4 \left (d x +c \right ) b}{d}+\frac {4 d a -4 c b}{d}\right )}{8 b}+\frac {d \sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {4 d a -4 c b}{d}\right ) \FresnelC \left (\frac {2 \sqrt {2}\, \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {4 d a -4 c b}{d}\right ) \mathrm {S}\left (\frac {2 \sqrt {2}\, \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{32 b \sqrt {\frac {b}{d}}}\right )}{8 b}\right )}{32 b}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.52, size = 547, normalized size = 1.34 \[ \frac {{\left (1280 \, {\left (d x + c\right )}^{\frac {3}{2}} b^{3} \sin \left (\frac {4 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right ) + 10240 \, {\left (d x + c\right )}^{\frac {3}{2}} b^{3} \sin \left (\frac {2 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right ) - 32 \, {\left (\frac {64 \, {\left (d x + c\right )}^{\frac {5}{2}} b^{4}}{d} - 15 \, \sqrt {d x + c} b^{2} d\right )} \cos \left (\frac {4 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right ) - 512 \, {\left (\frac {16 \, {\left (d x + c\right )}^{\frac {5}{2}} b^{4}}{d} - 15 \, \sqrt {d x + c} b^{2} d\right )} \cos \left (\frac {2 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right ) + {\left (\left (480 i - 480\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) + \left (480 i + 480\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {\frac {2 i \, b}{d}}\right ) + {\left (\left (30 i - 30\right ) \, \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) + \left (30 i + 30\right ) \, \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (2 \, \sqrt {d x + c} \sqrt {\frac {i \, b}{d}}\right ) + {\left (-\left (30 i + 30\right ) \, \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) - \left (30 i - 30\right ) \, \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (2 \, \sqrt {d x + c} \sqrt {-\frac {i \, b}{d}}\right ) + {\left (-\left (480 i + 480\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - \left (480 i - 480\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b d^{2} \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {-\frac {2 i \, b}{d}}\right )\right )} d}{65536 \, b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\cos \left (a+b\,x\right )}^3\,\sin \left (a+b\,x\right )\,{\left (c+d\,x\right )}^{5/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________